<?php
//面包屑，即顶部导航
use yii\bootstrap\ActiveForm;
$this->title='创建';
$this->params['breadcrumbs'][]=['label'=>'文章','url'=>['post/index']];
$this->params['breadcrumbs'][]=$this->title;
?>

<div class="row">
    <div class="col-lg-9">
        <div class="panel-title box-title">
            <span>创建文章</span>
            <?php Yii::$app->session->getFlash('warning') ?>
        </div>
        <div class="panel-body">
        <?php $form= ActiveForm::begin()?>
            <?=$form->field($model, 'title')->textInput(['maxlength'=>true]);?>
            <?=$form->field($model, 'cat_id')->dropDownList($cat);?>
            <?= $form->field($model, 'label_img')->widget('common\widgets\file_upload\FileUpload',[
            'config' => [
                ]
            ])
            ?>     

        <?= $form->field($model, 'content')->widget('common\widgets\ueditor\Ueditor',[
            'options'=>[
            'initialFrameHeight' => 400,
            ]
        ]) ?>
            
            <?=$form->field($model, 'tags')->textInput(['maxlength'=>true]);?>
       
            <div class="form-group">
                <?= \yii\bootstrap\Html::submitButton('发布',['class'=>'btn btn-success']) ?>
            </div>
        <?php ActiveForm::end()?>
        </div>
    </div>
    <div class="col-lg-3">
        <div class="panel-title box-title">
            <span>注意事项</span>
        </div>
        <div class="panel-body">
            <p>1111111</p>
            <p>2222222</p>
        </div>
    </div>
</div>

